package com.csaba.connector.bha;

import com.csaba.connector.ServiceException;
import com.csaba.connector.bha.model.BHASession;
import com.csaba.connector.model.Session;
import com.csaba.connector.service.AbstractBankService;
import com.csaba.connector.service.DummyService;
import com.ind.simplenode.SimpleNode;

public class BHADummyService extends AbstractBankService implements DummyService
{

	@Override
	public void execute( final Session session ) throws ServiceException
	{
		final BHASession local = (BHASession) session;

		/* INPUT:
		 *  requestName=dummy
		 *  activeTabId=?
		 *  tabId=?
		 * 
		 * OUTPUT:
		 *   adminMessage
		 */
		final SimpleNode request = new SimpleNode();
		final SimpleNode response = local.sendRequest(null, "dummy", request, null);

		if ( response.exists("adminMessage") )
		{
			//XXX process admin message
		}

	}
}
